layui.use('table', function () {
    var table = layui.table;
    table.render({
        elem: '#demo',
        url: '/info/persionInfo/list',
        cols: [[
            {field: 'num',title: '工号'},
            {field: 'name',title: '姓名'},
            {field: 'sex', title: '性别'},
            {field: 'phone', title: '电话'},
            {field: 'address',title: '地址'},
            {field: 'major', title: '专业'},
            {field: 'department', title: '部门'},
        ]],
        height: 'full-20'
    });
});